package mud.events;

import mud.Interactable;

/** An in-game occurrence that was caused by an entity */
public class EntityEvent implements Event {

    /** the entity causing the event */
    private final Interactable source;
    
    /**
     * Constructor
     * @param source the entity performing the action
     */
    public EntityEvent(Interactable source) {
        this.source = source;
    }

    /**
     * @return the entity performing the action
     */
    public Interactable getSource() {
    	return source;
    }

}
